
@page :first {
	/* printed page - 1st page */

	/* header and footer */
	@top-center {
		content: "";
		width: 100%;
		border-bottom: 1px solid black;
		margin-bottom: 1em;
	}
	@bottom-right {
		content: "";
		width: 100%;
		border-top: 1px solid black;
		margin-top: 1em;
	}
}

@page {
	/* printed page - defaults */

	/* page size defaults */
	size: Letter;
	margin: 0.75in 0.75in 0.75in 0.75in;

	/* widow/orphan control */
	widows: 3;
	orphans: 3;

	/* header and footer */
	@top-center {
		content: "The SELinux Notebook";
		width: 100%;
		border-bottom: 1px solid black;
		margin-bottom: 1em;
	}
	@bottom-right {
		content: "Page " counter(page);
		width: 100%;
		border-top: 1px solid black;
		margin-top: 1em;
	}
}

.title {
	/* pandoc generates the h1 title with the "title" class */
	display: none;
}

.author {
	display: none;
}

.rights {
	display: none;
}

html {
	/* 1em is specified as 16pt, 75% should be 12pt */
	font-size: 75%;
}

a {
	color: blue;
}

table {
	/* center and force/limit to 95% page width */
	margin-left: auto;
	margin-right: auto;
	width: 95%;
	/* combine table borders when they are adjacent */
	border-collapse: collapse;
	/* TODO: once we finish the HTML->Markdown conversion we should
	 *       revaluate the 'table-layout: fixed' hack below */
	table-layout: fixed;
}
table th {
	padding: 0.5em;
	border: 1px solid black;
	background-color: #d3d3d3;
	/* TODO: once we finish the HTML->Markdown conversion we should
	 *       revaluate the 'word-wrap: break-word' hack below */
	word-wrap: break-word;
}
table tr, td {
	padding: 0.5em;
	border: 1px solid black;
	/* TODO: once we finish the HTML->Markdown conversion we should
	 *       revaluate the 'word-wrap: break-word' hack below */
	word-wrap: break-word;
}

img {
	/* center and limit to 95% page width */
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 95%;
}

pre {
	/* force/limit to 95% page width */
	width: 95%;
	padding: 1em;
	background-color: #f5f5f5;
}
